function getOtherBook(userid){
//	console.warn(interfaceMobileUrl+"/otherBook.json?releaseId="+userid);
	$.ajax({
		url :interfaceMobileUrl+"/otherBook.json?releaseId="+userid,
		jsonp: "callback",
	    dataType: "jsonp",
	    jsonpCallback: "otherBook",
	    beforeSend:function(data){
			$(".zjr_tadshu > ul").html("");
			$(".zjr_tadshu > ul").append(getLoadingLi("正在加载中..."));
		},
		error:function(data){
			$(".zjr_tadshu > ul").html("");
			$(".zjr_tadshu > ul").append(getNoneDataLi("网络连接失败..."));
		}
	});
}
function otherBook(data){
	data = eval('(' + data + ')'); 
	data = data.list[0]["com.opac.readerHome.domain.UdlsRelease"];
	var $li ;
	var $tds = $('.zjr_tadshu > ul');
		$tds.html('');
	if(!data){
		$tds.append(getNoneDataLi("他没有发布其它书籍"));
	}else if(!data.length){
		$li = $('<li/>').append($('<img/>').attr({'src':'images/default1.jpg','alt':data.title,'isbn':data.isbn}))
			.append($('<h3/>').html(data.title))
			.append('<p>'+checkAuthorEnd(data.author)+'<span>著</span></p>');
		$tds.append($li);
	}else{
		$.each(data,function(i,oBook){
			$li = $('<li/>').append($('<img/>').attr({'src':'images/default1.jpg','alt':oBook.title,'isbn':oBook.isbn}))
			.append($('<h3/>').html(oBook.title))
			.append('<p>'+checkAuthorEnd(oBook.author)+'<span>著</span></p>');
			$tds.append($li);
		});
	}
//	$('.zjr_tadshu > ul > li').on('click',function(){
//		
//	});
	coverCover();
}
//
function checkAuthorEnd(author){
	if(author.endsWith('著')){
		author = author.slice(0,author.length-1);
	}
	return author;
}
//判断当前字符串是否以str结束
if (typeof String.prototype.endsWith != 'function') {
  String.prototype.endsWith = function (str){
     return this.slice(-str.length) == str;
  };
}